#include<stdio.h>
void move(char post1, char post2)
{
	printf("%c->%c ", post1, post2);
}
void hanoi(int n, char post1, char post2, char post3)
{
	if (n == 1)
	{
		move(post1, post3);
	}
	else
	{
		hanoi(n - 1, post1, post3, post2);
			move(post1, post3);
			hanoi(n - 1, post2, post1, post3);
	}
}
int main()
{
	hanoi(3, 'a', 'b', 'c');


}